<!--
 * @docName: 公户信息
 * @Author: mwl
 * @Date: 16:03
 * @LastEditors: mwl
 * @LastEditTime: 16:03
-->
<template>
  <div class="content">
    <a-tabs default-active-key="1" v-model="activeKey" @change="callback">
      <a-tab-pane key="1" tab="授权公户充值">
        <authorizaBusinessAccount :key="timer"></authorizaBusinessAccount>
      </a-tab-pane>
      <a-tab-pane key="2" tab="授权个人账户充值" :disabled="masterType =='1'">
        <authorizaIndividualbankCard :key="timer"></authorizaIndividualbankCard>
      </a-tab-pane>
    </a-tabs>
  </div>
</template>

<script>
import authorizaBusinessAccount from '@views/myAccount/modules/authorizaBusinessAccount';
import authorizaIndividualbankCard from '@views/myAccount/modules/authorizaIndividualbankCard';
export default {
  name: 'entAccountManagementAdd',
  components:{
    authorizaBusinessAccount,
    authorizaIndividualbankCard
  },
  data(){
    return {
      activeKey: '1',
      timer: null,
      masterType:this.$route.query.masterType
    }
  },
  mounted() {
  },
  created() {

  },
  methods: {
    async callback(key) {
      //
      this.activeKey = key
      //刷新子组件
      this.timer = new Date().getTime()
    },
  }
}
</script>

<style scoped lang="less">
.content{
  padding: 20px;
  background: #fff;

}

</style>
